package java2_unit5_1015;

public class Master {
	
	public void cure(Pet pet) {
		//判断：如果宠物健康值低于60，送宠物去看病
		if(pet.getHealth()<60) {
			pet.toHospital();
		}else {
			System.out.println("宠物很健康！");
		}
	}
	
	public void feed(Pet pet) {
		pet.toFeed();
	}
}
